package bairui.international.console.web.controller.authority.authorization.role;

import com.lianjing.sh.spring.web.controller.enhance.module.Module;
import com.lianjing.sh.spring.web.controller.enhance.module.ModuleHead;
import com.lianjing.sh.spring.web.controller.enhance.module.body.PageFilterInfo;
import com.lianjing.sh.spring.web.controller.enhance.module.body.PageModuleBody;

import bairui.international.console.web.controller.authority.authorization.role.operator.C_Admin_Authority_Authorization_Role_OperatorAdd_PageAccess;
import bairui.international.console.web.controller.authority.authorization.role.operator.C_Admin_Authority_Authorization_Role_OperatorRemove_PageAccess;

/**
 *
 * Module_Page
 *
 */
class Module_Page{

	/**
	 * 分页模块
	 */
	public Module module(
		com.lianjing.sh.spring.web.controller.enhance.module.feature.PageModuleFeatureSupport moduleFeature,
		C_Admin_Authority_Authorization_Role_Page.Page.Operate c_Admin_Authority_Authorization_Role_Page_Page_Operate
	,	C_Admin_Authority_Authorization_Role_AddAccess.AddAccess.Operate c_Admin_Authority_Authorization_Role_AddAccess_AddAccess_Operate
	,	C_Admin_Authority_Authorization_Role_EditAccess.EditAccess.Operate c_Admin_Authority_Authorization_Role_EditAccess_EditAccess_Operate
	,	C_Admin_Authority_Authorization_Role_Delete.Delete.Operate c_Admin_Authority_Authorization_Role_Delete_Delete_Operate
	,	C_Admin_Authority_Authorization_Role_Authority_Show.Show.Operate c_Admin_Authority_Authorization_Role_Authority_Show_Show_Operate
	,	C_Admin_Authority_Authorization_Role_OperatorAdd_PageAccess.PageAccess.Operate c_Admin_Authority_Authorization_Role_OperatorAdd_PageAccess_PageAccess_Operate
	,	C_Admin_Authority_Authorization_Role_OperatorRemove_PageAccess.PageAccess.Operate c_Admin_Authority_Authorization_Role_OperatorRemove_PageAccess_PageAccess_Operate
	){
		return
			new Module(
					new ModuleHead("列表")
						.addOperate(
							c_Admin_Authority_Authorization_Role_AddAccess_AddAccess_Operate
								.defaultComment("添加")
								.defaultTarget(com.lianjing.sh.spring.web.controller.base.operate.OperateTarget.Popup)
						)
					, 
					new PageModuleBody(
							moduleFeature,
							Page_OutputInfo.outputInfo(),
							new PageFilterInfo(
									Page_OutputInfo.pageInfo(), 
									Page_OutputInfo.orderInfo()
								),
							c_Admin_Authority_Authorization_Role_Page_Page_Operate
						)
						.addListOperate(
							c_Admin_Authority_Authorization_Role_EditAccess_EditAccess_Operate
								.defaultComment("编辑")
								.defaultTarget(com.lianjing.sh.spring.web.controller.base.operate.OperateTarget.Popup)
						)
						.addListOperate(
							c_Admin_Authority_Authorization_Role_Delete_Delete_Operate
								.defaultComment("删除")
						)
						.addListOperate(
							c_Admin_Authority_Authorization_Role_Authority_Show_Show_Operate
								.defaultComment("授权")
						)
						.addListOperate(
							c_Admin_Authority_Authorization_Role_OperatorAdd_PageAccess_PageAccess_Operate
								.defaultComment("添加操作者")
								.defaultTarget(com.lianjing.sh.spring.web.controller.base.operate.OperateTarget.Popup)
						)
						.addListOperate(
							c_Admin_Authority_Authorization_Role_OperatorRemove_PageAccess_PageAccess_Operate
								.defaultComment("移除操作者")
								.defaultTarget(com.lianjing.sh.spring.web.controller.base.operate.OperateTarget.Popup)
						)
						.setIdentifier("id")
				);
	}
	
	public Module module(
		C_Admin_Authority_Authorization_Role_Page.Page.Operate c_Admin_Authority_Authorization_Role_Page_Page_Operate
	,	C_Admin_Authority_Authorization_Role_AddAccess.AddAccess.Operate c_Admin_Authority_Authorization_Role_AddAccess_AddAccess_Operate
	,	C_Admin_Authority_Authorization_Role_EditAccess.EditAccess.Operate c_Admin_Authority_Authorization_Role_EditAccess_EditAccess_Operate
	,	C_Admin_Authority_Authorization_Role_Delete.Delete.Operate c_Admin_Authority_Authorization_Role_Delete_Delete_Operate
	,	C_Admin_Authority_Authorization_Role_Authority_Show.Show.Operate c_Admin_Authority_Authorization_Role_Authority_Show_Show_Operate
	,	C_Admin_Authority_Authorization_Role_OperatorAdd_PageAccess.PageAccess.Operate c_Admin_Authority_Authorization_Role_OperatorAdd_PageAccess_PageAccess_Operate
	,	C_Admin_Authority_Authorization_Role_OperatorRemove_PageAccess.PageAccess.Operate c_Admin_Authority_Authorization_Role_OperatorRemove_PageAccess_PageAccess_Operate
	){
		return this.module(
				null,
				c_Admin_Authority_Authorization_Role_Page_Page_Operate
	,			c_Admin_Authority_Authorization_Role_AddAccess_AddAccess_Operate
	,			c_Admin_Authority_Authorization_Role_EditAccess_EditAccess_Operate
	,			c_Admin_Authority_Authorization_Role_Delete_Delete_Operate
	,			c_Admin_Authority_Authorization_Role_Authority_Show_Show_Operate
	,			c_Admin_Authority_Authorization_Role_OperatorAdd_PageAccess_PageAccess_Operate
	,			c_Admin_Authority_Authorization_Role_OperatorRemove_PageAccess_PageAccess_Operate
			);
	}
	
	
	/**
	 * 输出模型
	 */
	

}
